package com.thinking.project.monitorserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thinking.project.monitorserver.pojo.Worker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkerMapper {
    int deleteByPrimaryKey(Integer workerId);

    int insert(Worker record);

    int insertSelective(Worker record);

    Worker selectByPrimaryKey(Integer workerId);

    List<Worker> selectForListPage(@Param("workerName") String workerName,@Param("startPage") Object startPage, @Param("pageSize") Object pageSize);
    List<Worker> selectForListPageNoPassword(@Param("workerName") String workerName,@Param("startPage") Object startPage, @Param("pageSize") Object pageSize);

    Worker selectByUserName(Worker record);

    int updateByPrimaryKeySelective(Worker record);

    public int selectForListNum(@Param("workerName") String workerName);

    int updateByPrimaryKey(Worker record);
}